package com.summer.shopping.event.checkin;

import org.springframework.context.ApplicationEvent;

public class CheckinEvent extends ApplicationEvent {
    public CheckinEvent(CheckinEventInfo source) {
        super(source);
    }

    public CheckinEventInfo get(){
        return (CheckinEventInfo) super.source;
    }

    public static CheckinEvent quickGet(Long userId){
        CheckinEventInfo checkinEventInfo = new CheckinEventInfo(userId);
        return new CheckinEvent(checkinEventInfo);
    }

}
